
<?php

mysql_connect('localhost','root','') or die(mysql_error());

mysql_select_db('mb120')or die(mysql_error());


$query = "INSERT INTO `countries` VALUES (null,'Bharat')";

mysql_query($query) or die(mysql_error());

$last_insert_id = mysql_insert_id();

echo "Country INserted on ID $last_insert_id";





